export function logger(req, res, next) {
  res.header('Access-Control-Allow-Origin', '*');
  res.header(
    'Access-Control-Allow-Headers',
    'Origin, X-Requested-With, Content-Type, Accept',
  );
  const { method, path, query, params } = req;
  console.log(`method:${method} path:${path} query:${query} params:${params}`);
  next();
}
